<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="../js/jquery-1.10.2.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script src="../js/nav.js"></script>
    <script src="../js/my.js"></script>
    <script src="../js/nav.js"></script>
    <script src="../js/vue2.6.11/vue.min.js"></script>
    <script src="../js/vue2.6.11/axios.js"></script>
    <script src="../js/echarts.min.js"></script>
    <script src="../js/element/index.js"></script>
    <script src="../js/base64.min.js"></script>


</head>
<body>

<button value="按钮" onclick="fun()">按钮</button>


<script type="text/javascript">

    function fun(){
        // http://127.0.0.1:8888/end/page/imagetest.html
        var url = 'http://127.0.0.1:8888/file/WordToPNG1.png'; //要预览文件的访问地址
        // var url = 'C:\\Users\\ssm\\Desktop\\Srping.md'; //要预览文件的访问地址
        window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(url)));
    }

</script>
</body>
</html>